package com.jackchan.homework.sysw.entity;

import com.jackchan.homework.common.IdEntity;

import javax.persistence.*;

/**
 * Created by ch-hui on 15/12/26.
 * 氨基酸成份
 */
@Entity
@Table(name = "t_nutrition_acids")
public class NutritionAcids extends IdEntity {

    private Material material;

    private Float arg;

    private Float his;

    private Float ile;

    private Float leu;

    private Float lys;

    private Float met;

    private Float cys;

    private Float phe;

    private Float tyr;

    private Float thr;

    private Float trp;

    private Float val;

    @ManyToOne
    @JoinColumn(name = "material_id", referencedColumnName = "id")
    public Material getMaterial() {
        return material;
    }

    public void setMaterial(Material material) {
        this.material = material;
    }

    @Column(name = "arg")
    public Float getArg() {
        return arg;
    }

    public void setArg(Float arg) {
        this.arg = arg;
    }

    @Column(name = "his")
    public Float getHis() {
        return his;
    }

    public void setHis(Float his) {
        this.his = his;
    }

    @Column(name = "ile")
    public Float getIle() {
        return ile;
    }

    public void setIle(Float ile) {
        this.ile = ile;
    }

    @Column(name = "leu")
    public Float getLeu() {
        return leu;
    }

    public void setLeu(Float leu) {
        this.leu = leu;
    }

    @Column(name = "lys")
    public Float getLys() {
        return lys;
    }

    public void setLys(Float lys) {
        this.lys = lys;
    }

    @Column(name = "met")
    public Float getMet() {
        return met;
    }

    public void setMet(Float met) {
        this.met = met;
    }

    @Column(name = "cys")
    public Float getCys() {
        return cys;
    }

    public void setCys(Float cys) {
        this.cys = cys;
    }

    @Column(name = "phe")
    public Float getPhe() {
        return phe;
    }

    public void setPhe(Float phe) {
        this.phe = phe;
    }

    @Column(name = "tyr")
    public Float getTyr() {
        return tyr;
    }

    public void setTyr(Float tyr) {
        this.tyr = tyr;
    }

    @Column(name = "thr")
    public Float getThr() {
        return thr;
    }

    public void setThr(Float thr) {
        this.thr = thr;
    }

    @Column(name = "trp")
    public Float getTrp() {
        return trp;
    }

    public void setTrp(Float trp) {
        this.trp = trp;
    }

    @Column(name = "val")
    public Float getVal() {
        return val;
    }

    public void setVal(Float val) {
        this.val = val;
    }
}
